package com.zcx.medicalnote;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.cbs.android.component.log.L;
import com.cbs.android.component.sms.mob.Mob;
import com.cbs.android.component.sms.smsinterface.SmsHandler;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = MainActivity.class.getName();
    private Mob mob;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mob = new Mob(this);
    }

    public void send(View view) {
        mob.getVerifyCode("13382850839", new SmsHandler() {
            @Override
            public void onSent() {
                L.e(TAG, "sent");
            }

            @Override
            public void onCodeReceived(String s) {

            }

            @Override
            public void onFailure(int i, String s) {
                L.e(TAG, "fail " + i + " " + s);
            }
        });
    }
}
